package cate.game.role.res.leader.hallows.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBRole;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "圣器激活皮肤的请求")
@OperationSetter(value = GDOperation.HALLOWS_HALLUCINATE_ACTIVE_SKIN, sub = "type")
public class HallowsActiveSkinReq implements MsgInput {
    @NoteField(value = "皮肤ID")
    public int skinId;

    @Override
    public MsgConfig conf() {
        return MsgIdBRole.HALLOWS_ACTIVE_SKIN_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getRes().leader.hallows.activeSkin(skinId);
    }
}
